package com.gcxy.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gcxy.core.PageVO;
import com.gcxy.dto.score.StudentScoreDTO;
import com.gcxy.dto.score.StudentScorePageDTO;
import com.gcxy.dto.evaluate.UpdateEvaluateDTO;
import com.gcxy.entity.Evaluate;
import com.gcxy.vo.score.StudentScorePageVO;
import com.gcxy.vo.score.StudentScoreVO;

/**
 * <p>
 * 评价表（教师评价、学生自我评价记录表） 服务类
 * </p>
 *
 * @author Huang先森
 * @since 2024-07-22
 */
public interface EvaluateService extends IService<Evaluate> {

    /**
     * 根据周报id获取对应的评价信息
     *
     * @param weeklyId
     * @return
     */
    Evaluate getByWeeklyId(Integer weeklyId);

    /**
     * 新增评价信息
     */
    void addEvaluate(Integer agencyId);

    /**
     * 修改评价信息
     *
     * @param updateEvaluateDTO
     * @return
     */
    boolean updateEvaluate(UpdateEvaluateDTO updateEvaluateDTO);

    /**
     * 根据条件分页查询学生成绩
     */
    PageVO<StudentScorePageVO> getStudentScorePageByCondition(StudentScorePageDTO studentScorePageDTO);

    StudentScoreVO getStudentScoresByCondition(StudentScoreDTO studentScoreDTO);
}
